package com.tzy.rpc.exception;/**
 * @description:
 * @Author HP
 * @create 2022/3/8 21:43
 */

import com.tzy.rpc.enumeration.RpcError;

/**
 * @author HP
 * @create 2022-03-08 21:43
 * @desc: 一些异常
 **/
public class RpcException extends RuntimeException{

    public RpcException(RpcError error,String detail){
        super(error.getMes()+":"+detail);
    }

    public RpcException(String msg,Throwable cause){
        super(msg,cause);
    }

    public RpcException(RpcError error){
        super(error.getMes());
    }
}
